home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
os2
/
pvm34b3.zip
/
pvm34b3
/
pvm3
/
libfpvm
/
WIN32
/
Pvmfjoingrp.c
< prev
next >
Wrap
C/C++ Source or Header
|
1997-07-22
|
728b
|
41 lines
/* $Id: Pvmfjoingrp.c,v 1.1 1997/06/27 16:27:05 pvmsrc Exp $ */
#ifdef WIN32
#include "..\..\src\pvmwin.h"
#endif
#include "pvm3.h"
#include "pvm_consts.h"
#ifdef __WATCOMC__
#include "watforstr.h"
#endif
void __fortran
#ifdef __WATCOMC__
PVMFJOINGROUP (group_str, inum)
WatcomFortranStr* group_str;
int *inum;
char* group_ptr = group_str->strP;
int group_len = group_str->len;
#else
PVMFJOINGROUP (group_ptr,group_len, inum)
char * group_ptr; int group_len;
int *inum;
#endif
{
char tgroup[MAX_GRP_NAME + 1];
/*
* Copy the group name to make sure there's
* a NUL at the end.
*/
if (ftocstr(tgroup, sizeof(tgroup), group_ptr, group_len)){
*inum = PvmBadParam;
return;
}
*inum = pvm_joingroup(tgroup);
}